<?php
namespace app\techn_api\controller\v1;
use think\Db;

class Pingjia extends Base
{
	public function _initialize()
	{
		parent::_initialize();
	}

	/**
	 * 隐私协议
	 */
	public function biaoqian_list()
	{
        $list = Db::name('user_biaoqian')->where('type',2)->select();
        if (!empty($list)){
            echo json_encode(['code'=>0,'msg'=>'ok','data'=>$list]);
        }else{
            echo json_encode(['code'=>-1,'msg'=>'err']);
        }
	}

	/**
	 * 用户协议
	 */
	public function yhxy()
	{
		return $this->fetch();
	}
}